package com.chapter_8;

/**
 * @Author: Timo
 * @Date: 2019/5/16 16:49
 * @Description: 类用途：
 */
public class MainClientRequest_8 {
    public static void main(String[] args){
        // 工人线程的个数
        Channel channel = new Channel(5);
        channel.startWorkers();
        new ClientThread("Alice", channel).start();
        new ClientThread("Bobby", channel).start();
        new ClientThread("Chris", channel).start();
        try {
            Thread.sleep(30000);
        } catch (InterruptedException e) {
        }
        System.exit(0);

    }
}
